"Counting Code" [WTH THANKS TO EMILY SHORT] Sherwood Forest is a room. "You are in the forest with a matchbox and a quiver.". A source is a kind of thing. A derivative is a kind of thing. A derivative can be used or unused. Derivation relates various things to one thing. The verb to be from implies the derivation relation. A bolt is a kind of derivative. A match is a kind of derivative. The plural of match is matches. the plural of bolt is bolts. Some match collection is a source. It is in the matchbox. 12 matches are from the match collection. Understand "match" or "matches" as the match collection. The printed name of match collection is "matches". Some bolt collection is a source. It is in the quiver. 12 bolts are from the bolt collection. Understand "bolt" or "bolts" as the bolt collection. The printed name of bolt collection is "bolts". The player carries a matchbox and a quiver. the matchbox is a closed,openable container. understand "match box" or "box" as matchbox. Instead of taking a source: if an unused off-stage thing (called the item) are from the noun begin; move the item to the player; now item is used; say "You pick up [an item]."; if the number of unused off-stage things which are from the noun is 0, remove the noun from play; end if. Understand "count [something]" as counting. Understand "count [source]" as counting. Counting is an action applying to one thing. Carry out counting: if the noun is a source begin; let count be the number of unused off-stage things which are from the noun; say "You see [count] of [the noun] left."; otherwise; say "There's just the one [noun]."; end if.